<h3>Dashboard</h3>

<div id="dashboard_left">
    <p style="text-align: center; font-size: 14px">Jumlah Laporan di setiap Sekolah</p>
	<br />
    <div style="border: #BBB 1px solid">
        <?php
        $this->load->helper('open_flash_chart_object');
        echo '<span style="display:none">' . $this->graph->render() . '</span>';
        echo open_flash_chart_object(480, 355, site_url('dashboard'), false, $this->graph->swf_path);
        ?>
    </div>

</div>
<div />
<div id="dashboard_right">
    <p style="text-align: center; font-size: 14px">Tabel 5 Laporan Terakhir</p>
	<br />
    <table>
        <tr><th>No.</th><th>Waktu Laporan</th><th>No Toilet</th><th>Sekolah</th><th>Isi Laporan</th><th>Pelapor</th></tr>
        <?php
        $this->load->library('tgl_indo');
        $tgl = new tgl_indo();
        $i=0;
        foreach ($query->result_array() as $row) {
            echo '<tr><td>'.($i+1).'</td><td>' . $tgl->konversi($row['waktu_laporan']) . '</td><td>' .
            $row['no_toilet'] . '</td><td>' .
            $row['nama_sekolah'] . '</td><td>' .
            $row['jenis_laporan'] . '</td><td>' .
            $row['pelapor'] . '</td></tr>';
			$i++;
        }
        ?>
    </table>

</div>